Using Sliders

This chapter will teach you how to use sliders in your skins.

Sample 1

In this sample we have just replaced the knobs by sliders, changed the background image and modified the layout a little bit:

This skin has the following points of interest:

Sample 2

Just the same sample as sample 1, but with another background image:

Sample 3

If we now change the thumb image for another one, we need to modify the sliders attributes a little bit to make them match:

You may think that the skin code is now looking a bit large, and that you repeat the same statements a lot. You will learn in next chapter how to simplify your skins and reuse your own defined widgets.